#app {
  .el-menu-item{
    .svg-icon{
      display: none;
    }
  }
  .el-submenu__title {
    height:45px !important;
    line-height: 45px !important;
    &>.svg-icon{
      color: $white;
    }
    &>span{
      color: $white;
    }
  }
  .main-container {
    min-height: 100%;
    transition: margin-left .11s;
    margin-left: $sideBarWidth_210;
    position: relative;
  }

  .sidebar-container {
    transition: width 0.11s;
    width: $sideBarWidth_210 !important;
    background-color: $white;
    height: 100%;
    position: fixed;
    font-size: 0px;
    top: 51px;
    bottom: 0;
    left: 0;
    z-index: 1001;
    // overflow: hidden;

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
      padding-bottom: 60px;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 10px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }

    // menu hover
    .submenu-title-noDropdown,
    .el-submenu__title {
      i{
        font-size: 16px !important;
        font-weight: bold;
        color: $white;
      }
      &:hover {
        background-color: #758582 !important;
      }
    }
    .is-opened {
      .el-submenu__title{
        &:hover {
          background-color: #758582 !important;
        }
      }
    }

    .is-active>.el-submenu__title {
      color: $menuText !important;
    }

    & .nest-menu .el-submenu>.el-submenu__title,
    & .el-submenu .el-menu-item {
      min-width: $sideBarWidth_210 !important;
      background-color: #475452 !important;
      &>span{
        color: $white;
      }
      &.is-active{
        background-color: #758582 !important;
      }
      &:hover {
        background-color: #758582 !important;
        &>span{
          color: $white;
        }
      }
    }
  }


  @keyframes fadenum{ /*设置内容由显示变为隐藏*/
    0%{opacity: 0;}
    100%{opacity: 0;}
  }
  .el-submenu__icon-arrow {
    animation:fadenum 0.2s ease;
    opacity: 1
  }

  .hideSidebar {
    // .sidebar-container {
    //   width: $sideBarWidth_54 !important;
    // }

    // .main-container {
    //   margin-left: $sideBarWidth_54;
    // }

    .select-poper{
      display: none;
    }
    &.on .el-scrollbar {
      width: auto !important;
      border:0;
    }
    &.on .sidebar-container {
      width: $sideBarWidth_54 !important;
      display: initial;
    }

    &.on .main-container {
      margin-left: $sideBarWidth_54;
    }

    .el-scrollbar {
      width: $sideBarWidth_54 !important;
    }
    .sidebar-container {
      width: 164px !important;
      display: flex;
    }
    .main-container {
      margin-left: 164px;
    }
    

    




    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }

    .el-submenu {
      overflow: hidden;

      &>.el-submenu__title {
        padding: 0 !important;
        .svg-icon {
          margin: 0px;
        }
        
        .el-submenu__icon-arrow {
          opacity: 0;
          display: none;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        &>.el-submenu__title {
          height: 60px !important;
          line-height: 22px !important;
          &>.svg-icon{
            margin-top: 18px;
          }
          &>span {
            margin: auto;
            letter-spacing: 1px;
            overflow: hidden;
            text-align: center;
            display: block;
          }
          .subMenu_a{
            display: block;
            height: 60px;
            overflow: initial;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding:10px;
            &.on{
              background: #475452;
            }
            .svg-icon{
              fill: $white;
              color: $white;
              // margin-top: 10px;
              font-size: $font_16;
            }
            span{
              margin: auto;
              letter-spacing: 1px;
              overflow: hidden;
              text-align: center;
              display: block;
              color: $white;
            }
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $sideBarWidth_210 !important;
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px !important;
    }

    .sidebar-container {
      transition: transform .11s !important;
      width: $sideBarWidth_210 !important;
    }

    &.hideSidebar .sidebar-container {
      width: 54px !important;
    }

    &.hideSidebar {
      .sidebar-container {
        // pointer-events: none;
        transition-duration: 0.3s !important;
        transform: translate3d(-54px, 0, 0) !important;
      }
    }
  }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
    &:hover {
      // you can use $subMenuHover
      background-color: #475452 !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}
